<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>编辑限时抢购</title>


<link href="${base}/resources/admin/css/amazeui.css" rel="stylesheet" type="text/css" /><link href="${base}/resources/admin/css/common.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${base}/resources/admin/js/jquery.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/jquery.validate.js"></script>
<script type="text/javascript" src="${base}/resources/admin/editor/kindeditor.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/common.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/input.js"></script>
<script type="text/javascript">
$().ready(function() {

	var $inputForm = $("#inputForm");
	var $browserButton = $("#browserButton");
	
	[@flash_message /]
	
	$browserButton.browser();
	
	// 表单验证
	$inputForm.validate({
		rules: {
			xxx: "required"
		}
	});
	
});
</script>
</head>
<body>
	<div class="path">
		<a href="${base}/asl-admin/common/index.htm">${message("admin.path.index")}</a> &raquo; 编辑限时抢购
	</div>
	<form id="inputForm" action="update.htm" method="post">
		<input type="hidden" name="id" value="${rush.id}" />
		<table class="input">
            <tr>
                <th>
                    <span class="requiredField">*</span>商品编号:
                </th>
                <td>
                    <input type="text" value="${rush.product.sn}" disabled name="sn" class="text" maxlength="200" />
                </td>
            </tr>
            <tr>
                <th> ${message("Coupon.beginDate")}:</th>
                <td>
                    <input type="text" id="beginDate" name="beginDate" class="text Wdate"
                           onfocus="WdatePicker({dateFmt: 'yyyy-MM-dd HH:mm:ss', maxDate: '#F{$dp.$D(\'endDate\')}'});"/>
                    <span>该项为空时，表示一经启用，就可以接受抢购</span>
                </td>
            </tr>
            <tr>
                <th> ${message("Coupon.endDate")}:</th>
                <td>
                    <input type="text" id="endDate" name="endDate" class="text Wdate"
                           onfocus="WdatePicker({dateFmt: 'yyyy-MM-dd HH:mm:ss', minDate: '#F{$dp.$D(\'beginDate\')}'});"/>
                    <span>该项为空时，表示一经启用，可以无限期抢购</span>
                </td>
            </tr>
            <tr>
                <th>
				${message("admin.common.setting")}:
                </th>
                <td>
                    <label>
                        <input type="checkbox" name="enable" [#if rush.enable]checked[/#if] value="true" />${message("Coupon.isEnabled")}
                    </label>
                </td>
            </tr>
		</table>
	</form>
</body>
</html>
